package com.xpgk.mvc.scallVisit;

import com.jfinal.aop.Before;
import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.xpgk.annotation.Service;
import com.xpgk.constant.ConstantRender;
import com.xpgk.dto.RenderBean;
import com.xpgk.mvc.bcallVisit.BcallVisitService;


@Service(name = ScallVisitService.serviceName)
public class ScallVisitService {

	@SuppressWarnings("unused")
	private static final Log log = Log.getLog(ScallVisitService.class);
	public static final String serviceName = "scallVisitService";
	
	
	/*
	 * 电话回访客户信息保存
	 */
	
	public RenderBean saveCallVisit(ScallVisit scallVisit, String cudid) {

		RenderBean result = new RenderBean();
		String  msg="";
			if(scallVisit.save()){
				msg=ConstantRender.render_success_code;
//				msg="200";
			}else{
				msg="添加失败！";
			}
			result.setMsg(msg);
			return result;
	}
}
